﻿// owner 蒋家伟

#include "IDocument.h"
#include "DocumentManager.h"

using namespace jsdk;

jsdk::IDocument* jsdk::IDocument::create()
{
    return DocumentManager::get().createEmptyDocument();
}

IDocument* jsdk::IDocument::Load(const std::wstring& loadPath)
{
    return DocumentManager::get().openDocument(loadPath);
}
